﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace MvcApp01.Models
{
    public class Last20YearsAttribute : RangeAttribute
    {
        public Last20YearsAttribute() : base(typeof(DateTime), DateTime.Now.AddYears(-20).ToString(), DateTime.Now.ToString())
        { }
    }
}